package pl.perseus.dao;
 
import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Repository;

import pl.perseus.model.Userrach;

@Repository
public class UserrachDao extends BaseDao<Userrach> implements IUserrachDao{
 
	
	public UserrachDao() {
		super("Userrach");
	}

	@Override
    public Userrach selectByIdUserrach(Long id) {
    	Map<String, Object> map = new HashMap<String, Object>();
    	map.put("id", id);
        return queryForObject("getByIdUserrach", map);
    }
	
	@Override
	public Userrach insertUserrach(Userrach userrach){
		return insertBean("insertUserrach", userrach);
	}
 
}
